<template>
  <div>
    <!-- 下单成功支付框 -->
    <PayBox ref="payBox" :noBackBtn="true"/>
    <BaseTop ref="baseTop" :type="type"/>
    <Common ref="common"/>
    <!-- 0实用新型、1外观设计、2发明 -->
    <Middle :type="2" ref="middle"/>
    <Other :type="2" ref="other"/>
    <template v-if="$app.judgeData(order_id)">
      <Button type="primary" size="large" class="marginR10" ghost @click="backOrSee">
        <Icon type="md-arrow-round-back" size="18" class="relative"  />
        返回
      </Button>
    </template>
    <Button type="primary" size="large" @click="bigGo">{{$app.judgeData(order_id)?'确认修改':'确认信息无误后-提交'}}</Button>
  </div>

</template>


<script>

import PayBox from "@$@/_service/payBox";
import BaseTop from "@$@/_service/baseTop";
import Common from "@$@/_service/common";
import Middle from "@$@/_service/middle";
import Other from "@$@/_service/other";
import info_edit_do from "@$@/js/$common/info_edit_do";
import zL_do from "@$@/js/$common/zL_do";
export default {
  name: "baseFMZL",
  components: {BaseTop, Common,Middle,Other,PayBox},
  data() {
    let {
      $route:{
        query:{
          type,order_id
        }
      }
    }=this;
    let data = {
      type,order_id,
      orderInfo:{}//专利详情 修改订单时用
    };
    return data;
  },
  created(){
    let {
      order_id
    }=this;
    if($app.judgeData(order_id)){
      //专利详情
      $ajax.itwPT(order_id,resData=>{
        this.orderInfo=resData;
        //全局赋值
        info_edit_do.patentTim(this);
      });
    }
  },
  mounted() {
    
  },
  
  methods: {
    bigGo(){
      let that=this;
      
      //1发明专利,2实用新型,3外观专利
      zL_do.patentDoSub(1,that);

    },
    backOrSee(){
      $app.backOrSee();
    }
  }
};
</script>

